package com.ruoyi.fetv.domain;

import com.ruoyi.common.aspect.annotation.Dict;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资讯评论对象 fetv_comment
 *
 * @author Jack
 * @date 2023-03-07
 */
@ApiModel(value = "FetvComment", description = "资讯评论对象fetv_comment")
public class FetvComment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键id */
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", required = true)
    private Long id;

    /**
     * 资讯id
     */
    @ApiModelProperty(value = "资讯id", required = true)
    @Dict("fetv_information:id:title")
    private Long informationId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)

    private String userName;

    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容", required = true)

    private String content;

    /**
     * 评论的父id
     */
    @ApiModelProperty(value = "评论的父id", required = true)
    private Long parentId;

    /**
     * 审核状态（0待审核 1通过 2不通过）
     */
    @ApiModelProperty(value = "审核状态（0待审核1通过2不通过）", required = true)
    @Dict("fetv_audit_status")
    private Long auditStatus;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @ApiModelProperty(value = "删除标志（0代表存在2代表删除）", required = true)
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getInformationId() {
        return informationId;
    }

    public void setInformationId(Long informationId) {
        this.informationId = informationId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Long auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("informationId", getInformationId())
                .append("userName", getUserName())
                .append("content", getContent())
                .append("parentId", getParentId())
                .append("auditStatus", getAuditStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
